package com.zheng.business.dao.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class BusinessAgentBillStatisticsLogExample implements Serializable {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private static final long serialVersionUID = 1L;

    public BusinessAgentBillStatisticsLogExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria implements Serializable {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andAgentIdIsNull() {
            addCriterion("agent_id is null");
            return (Criteria) this;
        }

        public Criteria andAgentIdIsNotNull() {
            addCriterion("agent_id is not null");
            return (Criteria) this;
        }

        public Criteria andAgentIdEqualTo(Integer value) {
            addCriterion("agent_id =", value, "agentId");
            return (Criteria) this;
        }

        public Criteria andAgentIdNotEqualTo(Integer value) {
            addCriterion("agent_id <>", value, "agentId");
            return (Criteria) this;
        }

        public Criteria andAgentIdGreaterThan(Integer value) {
            addCriterion("agent_id >", value, "agentId");
            return (Criteria) this;
        }

        public Criteria andAgentIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("agent_id >=", value, "agentId");
            return (Criteria) this;
        }

        public Criteria andAgentIdLessThan(Integer value) {
            addCriterion("agent_id <", value, "agentId");
            return (Criteria) this;
        }

        public Criteria andAgentIdLessThanOrEqualTo(Integer value) {
            addCriterion("agent_id <=", value, "agentId");
            return (Criteria) this;
        }

        public Criteria andAgentIdIn(List<Integer> values) {
            addCriterion("agent_id in", values, "agentId");
            return (Criteria) this;
        }

        public Criteria andAgentIdNotIn(List<Integer> values) {
            addCriterion("agent_id not in", values, "agentId");
            return (Criteria) this;
        }

        public Criteria andAgentIdBetween(Integer value1, Integer value2) {
            addCriterion("agent_id between", value1, value2, "agentId");
            return (Criteria) this;
        }

        public Criteria andAgentIdNotBetween(Integer value1, Integer value2) {
            addCriterion("agent_id not between", value1, value2, "agentId");
            return (Criteria) this;
        }

        public Criteria andAmountTotalBeforeIsNull() {
            addCriterion("amount_total_before is null");
            return (Criteria) this;
        }

        public Criteria andAmountTotalBeforeIsNotNull() {
            addCriterion("amount_total_before is not null");
            return (Criteria) this;
        }

        public Criteria andAmountTotalBeforeEqualTo(BigDecimal value) {
            addCriterion("amount_total_before =", value, "amountTotalBefore");
            return (Criteria) this;
        }

        public Criteria andAmountTotalBeforeNotEqualTo(BigDecimal value) {
            addCriterion("amount_total_before <>", value, "amountTotalBefore");
            return (Criteria) this;
        }

        public Criteria andAmountTotalBeforeGreaterThan(BigDecimal value) {
            addCriterion("amount_total_before >", value, "amountTotalBefore");
            return (Criteria) this;
        }

        public Criteria andAmountTotalBeforeGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("amount_total_before >=", value, "amountTotalBefore");
            return (Criteria) this;
        }

        public Criteria andAmountTotalBeforeLessThan(BigDecimal value) {
            addCriterion("amount_total_before <", value, "amountTotalBefore");
            return (Criteria) this;
        }

        public Criteria andAmountTotalBeforeLessThanOrEqualTo(BigDecimal value) {
            addCriterion("amount_total_before <=", value, "amountTotalBefore");
            return (Criteria) this;
        }

        public Criteria andAmountTotalBeforeIn(List<BigDecimal> values) {
            addCriterion("amount_total_before in", values, "amountTotalBefore");
            return (Criteria) this;
        }

        public Criteria andAmountTotalBeforeNotIn(List<BigDecimal> values) {
            addCriterion("amount_total_before not in", values, "amountTotalBefore");
            return (Criteria) this;
        }

        public Criteria andAmountTotalBeforeBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("amount_total_before between", value1, value2, "amountTotalBefore");
            return (Criteria) this;
        }

        public Criteria andAmountTotalBeforeNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("amount_total_before not between", value1, value2, "amountTotalBefore");
            return (Criteria) this;
        }

        public Criteria andAmountRateTotalBeforeIsNull() {
            addCriterion("amount_rate_total_before is null");
            return (Criteria) this;
        }

        public Criteria andAmountRateTotalBeforeIsNotNull() {
            addCriterion("amount_rate_total_before is not null");
            return (Criteria) this;
        }

        public Criteria andAmountRateTotalBeforeEqualTo(BigDecimal value) {
            addCriterion("amount_rate_total_before =", value, "amountRateTotalBefore");
            return (Criteria) this;
        }

        public Criteria andAmountRateTotalBeforeNotEqualTo(BigDecimal value) {
            addCriterion("amount_rate_total_before <>", value, "amountRateTotalBefore");
            return (Criteria) this;
        }

        public Criteria andAmountRateTotalBeforeGreaterThan(BigDecimal value) {
            addCriterion("amount_rate_total_before >", value, "amountRateTotalBefore");
            return (Criteria) this;
        }

        public Criteria andAmountRateTotalBeforeGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("amount_rate_total_before >=", value, "amountRateTotalBefore");
            return (Criteria) this;
        }

        public Criteria andAmountRateTotalBeforeLessThan(BigDecimal value) {
            addCriterion("amount_rate_total_before <", value, "amountRateTotalBefore");
            return (Criteria) this;
        }

        public Criteria andAmountRateTotalBeforeLessThanOrEqualTo(BigDecimal value) {
            addCriterion("amount_rate_total_before <=", value, "amountRateTotalBefore");
            return (Criteria) this;
        }

        public Criteria andAmountRateTotalBeforeIn(List<BigDecimal> values) {
            addCriterion("amount_rate_total_before in", values, "amountRateTotalBefore");
            return (Criteria) this;
        }

        public Criteria andAmountRateTotalBeforeNotIn(List<BigDecimal> values) {
            addCriterion("amount_rate_total_before not in", values, "amountRateTotalBefore");
            return (Criteria) this;
        }

        public Criteria andAmountRateTotalBeforeBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("amount_rate_total_before between", value1, value2, "amountRateTotalBefore");
            return (Criteria) this;
        }

        public Criteria andAmountRateTotalBeforeNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("amount_rate_total_before not between", value1, value2, "amountRateTotalBefore");
            return (Criteria) this;
        }

        public Criteria andAmountRemainderBeforeIsNull() {
            addCriterion("amount_remainder_before is null");
            return (Criteria) this;
        }

        public Criteria andAmountRemainderBeforeIsNotNull() {
            addCriterion("amount_remainder_before is not null");
            return (Criteria) this;
        }

        public Criteria andAmountRemainderBeforeEqualTo(BigDecimal value) {
            addCriterion("amount_remainder_before =", value, "amountRemainderBefore");
            return (Criteria) this;
        }

        public Criteria andAmountRemainderBeforeNotEqualTo(BigDecimal value) {
            addCriterion("amount_remainder_before <>", value, "amountRemainderBefore");
            return (Criteria) this;
        }

        public Criteria andAmountRemainderBeforeGreaterThan(BigDecimal value) {
            addCriterion("amount_remainder_before >", value, "amountRemainderBefore");
            return (Criteria) this;
        }

        public Criteria andAmountRemainderBeforeGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("amount_remainder_before >=", value, "amountRemainderBefore");
            return (Criteria) this;
        }

        public Criteria andAmountRemainderBeforeLessThan(BigDecimal value) {
            addCriterion("amount_remainder_before <", value, "amountRemainderBefore");
            return (Criteria) this;
        }

        public Criteria andAmountRemainderBeforeLessThanOrEqualTo(BigDecimal value) {
            addCriterion("amount_remainder_before <=", value, "amountRemainderBefore");
            return (Criteria) this;
        }

        public Criteria andAmountRemainderBeforeIn(List<BigDecimal> values) {
            addCriterion("amount_remainder_before in", values, "amountRemainderBefore");
            return (Criteria) this;
        }

        public Criteria andAmountRemainderBeforeNotIn(List<BigDecimal> values) {
            addCriterion("amount_remainder_before not in", values, "amountRemainderBefore");
            return (Criteria) this;
        }

        public Criteria andAmountRemainderBeforeBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("amount_remainder_before between", value1, value2, "amountRemainderBefore");
            return (Criteria) this;
        }

        public Criteria andAmountRemainderBeforeNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("amount_remainder_before not between", value1, value2, "amountRemainderBefore");
            return (Criteria) this;
        }

        public Criteria andAmountTotalAlterIsNull() {
            addCriterion("amount_total_alter is null");
            return (Criteria) this;
        }

        public Criteria andAmountTotalAlterIsNotNull() {
            addCriterion("amount_total_alter is not null");
            return (Criteria) this;
        }

        public Criteria andAmountTotalAlterEqualTo(BigDecimal value) {
            addCriterion("amount_total_alter =", value, "amountTotalAlter");
            return (Criteria) this;
        }

        public Criteria andAmountTotalAlterNotEqualTo(BigDecimal value) {
            addCriterion("amount_total_alter <>", value, "amountTotalAlter");
            return (Criteria) this;
        }

        public Criteria andAmountTotalAlterGreaterThan(BigDecimal value) {
            addCriterion("amount_total_alter >", value, "amountTotalAlter");
            return (Criteria) this;
        }

        public Criteria andAmountTotalAlterGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("amount_total_alter >=", value, "amountTotalAlter");
            return (Criteria) this;
        }

        public Criteria andAmountTotalAlterLessThan(BigDecimal value) {
            addCriterion("amount_total_alter <", value, "amountTotalAlter");
            return (Criteria) this;
        }

        public Criteria andAmountTotalAlterLessThanOrEqualTo(BigDecimal value) {
            addCriterion("amount_total_alter <=", value, "amountTotalAlter");
            return (Criteria) this;
        }

        public Criteria andAmountTotalAlterIn(List<BigDecimal> values) {
            addCriterion("amount_total_alter in", values, "amountTotalAlter");
            return (Criteria) this;
        }

        public Criteria andAmountTotalAlterNotIn(List<BigDecimal> values) {
            addCriterion("amount_total_alter not in", values, "amountTotalAlter");
            return (Criteria) this;
        }

        public Criteria andAmountTotalAlterBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("amount_total_alter between", value1, value2, "amountTotalAlter");
            return (Criteria) this;
        }

        public Criteria andAmountTotalAlterNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("amount_total_alter not between", value1, value2, "amountTotalAlter");
            return (Criteria) this;
        }

        public Criteria andAmountRateTotalAlterIsNull() {
            addCriterion("amount_rate_total_alter is null");
            return (Criteria) this;
        }

        public Criteria andAmountRateTotalAlterIsNotNull() {
            addCriterion("amount_rate_total_alter is not null");
            return (Criteria) this;
        }

        public Criteria andAmountRateTotalAlterEqualTo(BigDecimal value) {
            addCriterion("amount_rate_total_alter =", value, "amountRateTotalAlter");
            return (Criteria) this;
        }

        public Criteria andAmountRateTotalAlterNotEqualTo(BigDecimal value) {
            addCriterion("amount_rate_total_alter <>", value, "amountRateTotalAlter");
            return (Criteria) this;
        }

        public Criteria andAmountRateTotalAlterGreaterThan(BigDecimal value) {
            addCriterion("amount_rate_total_alter >", value, "amountRateTotalAlter");
            return (Criteria) this;
        }

        public Criteria andAmountRateTotalAlterGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("amount_rate_total_alter >=", value, "amountRateTotalAlter");
            return (Criteria) this;
        }

        public Criteria andAmountRateTotalAlterLessThan(BigDecimal value) {
            addCriterion("amount_rate_total_alter <", value, "amountRateTotalAlter");
            return (Criteria) this;
        }

        public Criteria andAmountRateTotalAlterLessThanOrEqualTo(BigDecimal value) {
            addCriterion("amount_rate_total_alter <=", value, "amountRateTotalAlter");
            return (Criteria) this;
        }

        public Criteria andAmountRateTotalAlterIn(List<BigDecimal> values) {
            addCriterion("amount_rate_total_alter in", values, "amountRateTotalAlter");
            return (Criteria) this;
        }

        public Criteria andAmountRateTotalAlterNotIn(List<BigDecimal> values) {
            addCriterion("amount_rate_total_alter not in", values, "amountRateTotalAlter");
            return (Criteria) this;
        }

        public Criteria andAmountRateTotalAlterBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("amount_rate_total_alter between", value1, value2, "amountRateTotalAlter");
            return (Criteria) this;
        }

        public Criteria andAmountRateTotalAlterNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("amount_rate_total_alter not between", value1, value2, "amountRateTotalAlter");
            return (Criteria) this;
        }

        public Criteria andAmountRemainderAlterIsNull() {
            addCriterion("amount_remainder_alter is null");
            return (Criteria) this;
        }

        public Criteria andAmountRemainderAlterIsNotNull() {
            addCriterion("amount_remainder_alter is not null");
            return (Criteria) this;
        }

        public Criteria andAmountRemainderAlterEqualTo(BigDecimal value) {
            addCriterion("amount_remainder_alter =", value, "amountRemainderAlter");
            return (Criteria) this;
        }

        public Criteria andAmountRemainderAlterNotEqualTo(BigDecimal value) {
            addCriterion("amount_remainder_alter <>", value, "amountRemainderAlter");
            return (Criteria) this;
        }

        public Criteria andAmountRemainderAlterGreaterThan(BigDecimal value) {
            addCriterion("amount_remainder_alter >", value, "amountRemainderAlter");
            return (Criteria) this;
        }

        public Criteria andAmountRemainderAlterGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("amount_remainder_alter >=", value, "amountRemainderAlter");
            return (Criteria) this;
        }

        public Criteria andAmountRemainderAlterLessThan(BigDecimal value) {
            addCriterion("amount_remainder_alter <", value, "amountRemainderAlter");
            return (Criteria) this;
        }

        public Criteria andAmountRemainderAlterLessThanOrEqualTo(BigDecimal value) {
            addCriterion("amount_remainder_alter <=", value, "amountRemainderAlter");
            return (Criteria) this;
        }

        public Criteria andAmountRemainderAlterIn(List<BigDecimal> values) {
            addCriterion("amount_remainder_alter in", values, "amountRemainderAlter");
            return (Criteria) this;
        }

        public Criteria andAmountRemainderAlterNotIn(List<BigDecimal> values) {
            addCriterion("amount_remainder_alter not in", values, "amountRemainderAlter");
            return (Criteria) this;
        }

        public Criteria andAmountRemainderAlterBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("amount_remainder_alter between", value1, value2, "amountRemainderAlter");
            return (Criteria) this;
        }

        public Criteria andAmountRemainderAlterNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("amount_remainder_alter not between", value1, value2, "amountRemainderAlter");
            return (Criteria) this;
        }

        public Criteria andAmountIsNull() {
            addCriterion("amount is null");
            return (Criteria) this;
        }

        public Criteria andAmountIsNotNull() {
            addCriterion("amount is not null");
            return (Criteria) this;
        }

        public Criteria andAmountEqualTo(BigDecimal value) {
            addCriterion("amount =", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotEqualTo(BigDecimal value) {
            addCriterion("amount <>", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountGreaterThan(BigDecimal value) {
            addCriterion("amount >", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("amount >=", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountLessThan(BigDecimal value) {
            addCriterion("amount <", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("amount <=", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountIn(List<BigDecimal> values) {
            addCriterion("amount in", values, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotIn(List<BigDecimal> values) {
            addCriterion("amount not in", values, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("amount between", value1, value2, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("amount not between", value1, value2, "amount");
            return (Criteria) this;
        }

        public Criteria andRateIsNull() {
            addCriterion("rate is null");
            return (Criteria) this;
        }

        public Criteria andRateIsNotNull() {
            addCriterion("rate is not null");
            return (Criteria) this;
        }

        public Criteria andRateEqualTo(BigDecimal value) {
            addCriterion("rate =", value, "rate");
            return (Criteria) this;
        }

        public Criteria andRateNotEqualTo(BigDecimal value) {
            addCriterion("rate <>", value, "rate");
            return (Criteria) this;
        }

        public Criteria andRateGreaterThan(BigDecimal value) {
            addCriterion("rate >", value, "rate");
            return (Criteria) this;
        }

        public Criteria andRateGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("rate >=", value, "rate");
            return (Criteria) this;
        }

        public Criteria andRateLessThan(BigDecimal value) {
            addCriterion("rate <", value, "rate");
            return (Criteria) this;
        }

        public Criteria andRateLessThanOrEqualTo(BigDecimal value) {
            addCriterion("rate <=", value, "rate");
            return (Criteria) this;
        }

        public Criteria andRateIn(List<BigDecimal> values) {
            addCriterion("rate in", values, "rate");
            return (Criteria) this;
        }

        public Criteria andRateNotIn(List<BigDecimal> values) {
            addCriterion("rate not in", values, "rate");
            return (Criteria) this;
        }

        public Criteria andRateBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("rate between", value1, value2, "rate");
            return (Criteria) this;
        }

        public Criteria andRateNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("rate not between", value1, value2, "rate");
            return (Criteria) this;
        }

        public Criteria andRateAmountIsNull() {
            addCriterion("rate_amount is null");
            return (Criteria) this;
        }

        public Criteria andRateAmountIsNotNull() {
            addCriterion("rate_amount is not null");
            return (Criteria) this;
        }

        public Criteria andRateAmountEqualTo(BigDecimal value) {
            addCriterion("rate_amount =", value, "rateAmount");
            return (Criteria) this;
        }

        public Criteria andRateAmountNotEqualTo(BigDecimal value) {
            addCriterion("rate_amount <>", value, "rateAmount");
            return (Criteria) this;
        }

        public Criteria andRateAmountGreaterThan(BigDecimal value) {
            addCriterion("rate_amount >", value, "rateAmount");
            return (Criteria) this;
        }

        public Criteria andRateAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("rate_amount >=", value, "rateAmount");
            return (Criteria) this;
        }

        public Criteria andRateAmountLessThan(BigDecimal value) {
            addCriterion("rate_amount <", value, "rateAmount");
            return (Criteria) this;
        }

        public Criteria andRateAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("rate_amount <=", value, "rateAmount");
            return (Criteria) this;
        }

        public Criteria andRateAmountIn(List<BigDecimal> values) {
            addCriterion("rate_amount in", values, "rateAmount");
            return (Criteria) this;
        }

        public Criteria andRateAmountNotIn(List<BigDecimal> values) {
            addCriterion("rate_amount not in", values, "rateAmount");
            return (Criteria) this;
        }

        public Criteria andRateAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("rate_amount between", value1, value2, "rateAmount");
            return (Criteria) this;
        }

        public Criteria andRateAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("rate_amount not between", value1, value2, "rateAmount");
            return (Criteria) this;
        }

        public Criteria andAmountAlterIsNull() {
            addCriterion("amount_alter is null");
            return (Criteria) this;
        }

        public Criteria andAmountAlterIsNotNull() {
            addCriterion("amount_alter is not null");
            return (Criteria) this;
        }

        public Criteria andAmountAlterEqualTo(BigDecimal value) {
            addCriterion("amount_alter =", value, "amountAlter");
            return (Criteria) this;
        }

        public Criteria andAmountAlterNotEqualTo(BigDecimal value) {
            addCriterion("amount_alter <>", value, "amountAlter");
            return (Criteria) this;
        }

        public Criteria andAmountAlterGreaterThan(BigDecimal value) {
            addCriterion("amount_alter >", value, "amountAlter");
            return (Criteria) this;
        }

        public Criteria andAmountAlterGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("amount_alter >=", value, "amountAlter");
            return (Criteria) this;
        }

        public Criteria andAmountAlterLessThan(BigDecimal value) {
            addCriterion("amount_alter <", value, "amountAlter");
            return (Criteria) this;
        }

        public Criteria andAmountAlterLessThanOrEqualTo(BigDecimal value) {
            addCriterion("amount_alter <=", value, "amountAlter");
            return (Criteria) this;
        }

        public Criteria andAmountAlterIn(List<BigDecimal> values) {
            addCriterion("amount_alter in", values, "amountAlter");
            return (Criteria) this;
        }

        public Criteria andAmountAlterNotIn(List<BigDecimal> values) {
            addCriterion("amount_alter not in", values, "amountAlter");
            return (Criteria) this;
        }

        public Criteria andAmountAlterBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("amount_alter between", value1, value2, "amountAlter");
            return (Criteria) this;
        }

        public Criteria andAmountAlterNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("amount_alter not between", value1, value2, "amountAlter");
            return (Criteria) this;
        }

        public Criteria andSubAgentIdIsNull() {
            addCriterion("sub_agent_id is null");
            return (Criteria) this;
        }

        public Criteria andSubAgentIdIsNotNull() {
            addCriterion("sub_agent_id is not null");
            return (Criteria) this;
        }

        public Criteria andSubAgentIdEqualTo(String value) {
            addCriterion("sub_agent_id =", value, "subAgentId");
            return (Criteria) this;
        }

        public Criteria andSubAgentIdNotEqualTo(String value) {
            addCriterion("sub_agent_id <>", value, "subAgentId");
            return (Criteria) this;
        }

        public Criteria andSubAgentIdGreaterThan(String value) {
            addCriterion("sub_agent_id >", value, "subAgentId");
            return (Criteria) this;
        }

        public Criteria andSubAgentIdGreaterThanOrEqualTo(String value) {
            addCriterion("sub_agent_id >=", value, "subAgentId");
            return (Criteria) this;
        }

        public Criteria andSubAgentIdLessThan(String value) {
            addCriterion("sub_agent_id <", value, "subAgentId");
            return (Criteria) this;
        }

        public Criteria andSubAgentIdLessThanOrEqualTo(String value) {
            addCriterion("sub_agent_id <=", value, "subAgentId");
            return (Criteria) this;
        }

        public Criteria andSubAgentIdLike(String value) {
            addCriterion("sub_agent_id like", value, "subAgentId");
            return (Criteria) this;
        }

        public Criteria andSubAgentIdNotLike(String value) {
            addCriterion("sub_agent_id not like", value, "subAgentId");
            return (Criteria) this;
        }

        public Criteria andSubAgentIdIn(List<String> values) {
            addCriterion("sub_agent_id in", values, "subAgentId");
            return (Criteria) this;
        }

        public Criteria andSubAgentIdNotIn(List<String> values) {
            addCriterion("sub_agent_id not in", values, "subAgentId");
            return (Criteria) this;
        }

        public Criteria andSubAgentIdBetween(String value1, String value2) {
            addCriterion("sub_agent_id between", value1, value2, "subAgentId");
            return (Criteria) this;
        }

        public Criteria andSubAgentIdNotBetween(String value1, String value2) {
            addCriterion("sub_agent_id not between", value1, value2, "subAgentId");
            return (Criteria) this;
        }

        public Criteria andCreateMonthIsNull() {
            addCriterion("create_month is null");
            return (Criteria) this;
        }

        public Criteria andCreateMonthIsNotNull() {
            addCriterion("create_month is not null");
            return (Criteria) this;
        }

        public Criteria andCreateMonthEqualTo(String value) {
            addCriterion("create_month =", value, "createMonth");
            return (Criteria) this;
        }

        public Criteria andCreateMonthNotEqualTo(String value) {
            addCriterion("create_month <>", value, "createMonth");
            return (Criteria) this;
        }

        public Criteria andCreateMonthGreaterThan(String value) {
            addCriterion("create_month >", value, "createMonth");
            return (Criteria) this;
        }

        public Criteria andCreateMonthGreaterThanOrEqualTo(String value) {
            addCriterion("create_month >=", value, "createMonth");
            return (Criteria) this;
        }

        public Criteria andCreateMonthLessThan(String value) {
            addCriterion("create_month <", value, "createMonth");
            return (Criteria) this;
        }

        public Criteria andCreateMonthLessThanOrEqualTo(String value) {
            addCriterion("create_month <=", value, "createMonth");
            return (Criteria) this;
        }

        public Criteria andCreateMonthLike(String value) {
            addCriterion("create_month like", value, "createMonth");
            return (Criteria) this;
        }

        public Criteria andCreateMonthNotLike(String value) {
            addCriterion("create_month not like", value, "createMonth");
            return (Criteria) this;
        }

        public Criteria andCreateMonthIn(List<String> values) {
            addCriterion("create_month in", values, "createMonth");
            return (Criteria) this;
        }

        public Criteria andCreateMonthNotIn(List<String> values) {
            addCriterion("create_month not in", values, "createMonth");
            return (Criteria) this;
        }

        public Criteria andCreateMonthBetween(String value1, String value2) {
            addCriterion("create_month between", value1, value2, "createMonth");
            return (Criteria) this;
        }

        public Criteria andCreateMonthNotBetween(String value1, String value2) {
            addCriterion("create_month not between", value1, value2, "createMonth");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria implements Serializable {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion implements Serializable {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}